import {useSubscribe} from './store'

export default function Counter04() {
  const [counter, setCounter] = useSubscribe('counter04')

  console.log('counter04: ', counter)

  function clickHandle() {
    setCounter(counter + 1)
  }
  return (
    <button onClick={clickHandle}>
      counter04: {counter}
    </button>
  )
}